Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /* globals confirm, atob, btoa, alert */ |
||
20 | ct.reset = function(ask) { |
||
21 | let confirmation = true; |
||
22 | if (ask) { |
||
23 | confirmation = confirm('Are you sure you want to reset? This will permanently erase your progress.'); |
||
24 | } |
||
25 | |||
26 | if (confirmation === true) { |
||
27 | localStorage.removeItem('player'); |
||
28 | savegame.initSave(); |
||
29 | } |
||
30 | }; |
||
31 | |||
57 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.